project(NBL)
cmake_minimum_required(VERSION 2.8) #指定cmake版本号

message(STATUS "cmake default debug CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_DEBUG}")
message(STATUS "cmake default release CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_DEBUG}")

option(BUILD_STATIC_LIBS "Build libNBL static library." OFF)
option(BUILD_SHARED_LIBS "Build libNBL shared library." ON)

set(PROJECT_ROOT_DIR ${PROJECT_SOURCE_DIR})
message(STATUS "C++ flags have ${CMAKE_CXX_FLAGS}")
set(NBL_SRC_DIR ${PROJECT_SOURCE_DIR}/src)


add_subdirectory( src )  #链接子目录 src
add_subdirectory( test ) #链接子目录 text
